<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

	<?php echo $this->headTitle() ?>
    <?php echo $this->headLink() ?>
	
	<?php echo $this->headMeta(); ?>
	
	<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
    <!-- Favicon -->
	
	<link rel="shortcut icon" href="<?php echo DIR_IMG; ?>/favicon.ico" type="image/x-icon" />
	
	<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
    <!-- Javascript -->
	
    <script type="text/javascript" src="<?php echo DIR_JS; ?>/jquery-1.7.min.js"></script>
	
	<script type="text/javascript" src="<?php echo DIR_JS; ?>/jquery.jgrowl_1.2.5_compressed.js"></script>
	
	<script type="text/javascript" src="<?php echo DIR_JS; ?>/mensagem.js"></script>

	<script type="text/javascript" charset="utf-8">

		jQuery(document).ready( function()
    	{
        	<?php if( !empty($this->messages) ): ?>
        		<?php foreach( $this->messages as $message ): ?>
					Mensagem("<?php echo $message; ?>");
				<?php endforeach; ?>
			<?php endif; ?>
		});

	</script>
	
 	<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
    <!-- CSS -->
	
    <link href="<?php echo DIR_CSS; ?>/reset.css" media="screen" rel="stylesheet" type="text/css" />
    <link href="<?php echo DIR_CSS; ?>/login.css" media="screen" rel="stylesheet" type="text/css" />
    
    <?php if( APPLICATION_ENV === 'development' ): ?>
    	<link href="<?php echo DIR_CSS; ?>/debug.css" media="screen" rel="stylesheet" type="text/css" />
	<?php endif; ?>
	
	<link href="<?php echo DIR_CSS; ?>/jquery.jgrowl.css" media="screen" rel="stylesheet" type="text/css" />

    <?php echo $this->headLink(); ?>
 	
</head>
<body>

	<div id="corpo">
		
    	<div class="container header" id="header">
    		<?php echo $this->translate('app.footer'); ?>
    	</div>

    	<div id="container">

        	<div class="container logo" id="logo">
            	<img src="<?php echo DIR_IMG . '/login.png'; ?>" height="128px" width="128px" />
        	</div>

        	<div class="container login" id="login">
				<?php echo $this->layout()->content; ?>
        	</div>
        
        	<div class="clear"></div>
    	</div>
		
	</div>

	<div id="mensagem" class="jGrowl bottom-right"></div>
	
</body>
</html>